This in not a working example you must be online for this to work. Just what it looks like.
Usage
The first question I get from users of this applet is "How do I change or set the
password?". Well, nothing could be easier. The password is actually the name of an
HTML file that should be in the path specified in the 'root' parameter.
Lets take an example:
This is what You want:
This is how You do it:
Insert This code into between the <Body> tags of your HTML Page.
How to change password or add more secret files
To change a password you only have to rename the file (if it's first set up as the
example above). But make sure the extension is ".html" and NOT ".htm".
To add more secret files; just copy the files you want to protect to the path described in the 'root' parameter and rename them as described above.
If your are using Netscape you can click one of the links below with the right mouse button and select "Save Link As...". If your are using Microsoft Internet Explorer you can do the same thing but select "Save Target As...".
Requiered files: password.class
Optional files: password.java
All the above files in one: password.zip
None...so far. Please let me know if you find any bugs or problems!